package com.wing.warehouse.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.warehouse.model.entity.MoveDownWarehouse;
import com.wing.warehouse.model.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 移库下货记录-Dao
 *
 * @author
 */
@Mapper
public interface MoveDownWarehouseDao extends BaseMapper<MoveDownWarehouse> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<MoveDownWarehouseVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<MoveDownWarehouseVO> list4app(@Param("page") Page<MoveDownWarehouseVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    MoveDownWarehouseVO get4appById(Long id);

    /**
     * 获取当前仓库的库位信息
     * @param params
     * @return
     */
    List<MoveWareHouseKuVO> getNowKuWeiInfo(@Param("params") Map<String, Object> params);


    /**
     * 获取当前仓库的料箱信息
     * @param params
     * @return
     */
    List<MoveWareHouseKuVO> getNowLiaoXiangInfo(@Param("params") Map<String, Object> params);

    /**
     * 商品列表-app
     *
     * @param params
     *
     * @return
     */
    List<MoveGoodsListVO> getGoodsList(@Param("page") Page<MoveGoodsListVO> page, @Param("params") Map<String, Object> params);

}
